package io.github.jesse205.deskclock.lite.utils;

import android.app.Activity;
import android.content.Intent;

public final class ActivityUtil {
    private ActivityUtil() {
    }

    public static void restartActivity(Activity activity) {
        activity.startActivity(new Intent(activity, activity.getClass()));
        activity.finish();
        activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
    }
}
